<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class database extends CI_Model {

    function __construct() {
        parent::__construct();
        $this->load->database();
    }

    function getData() {
        $sql = 'SELECT * FROM finance';
        $query = $this->db->query($sql);
        return $query->result();
    }

}

?>
